<!DOCTYPE html>
<html>

<head>
  <title></title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="../bootstrap-5.1.3-dist/css/bootstrap.css" rel="stylesheet">
  <script src="../bootstrap-5.1.3-dist/js/bootstrap.bundle.min.js"></script>
</head>

<body class="container">
  <h3 align="center">图像背景</h3>
  <div class="card bg-dark text-white">
    <img src="2.jpg" class="card-img" alt="">
    <div class="card-img-overlay">
      <h3 class="card-title">早梅</h3>
      <p class="card-text">一树寒梅白玉条，迥临村路傍溪桥。</p>
      <p class="card-text">不知近水花先发，疑是经冬雪未销。</p>
    </div>
  </div>

</body>

</html>